#!/usr/bin/python
#-*- encoding: utf-8 -*-
from flup.server.fcgi import WSGIServer
from web import app

WSGIServer(app, bindAddress='/tmp/showxun_app.sock').run()

#. env/bin/activate
#python showxun.fcgi method=prefork minspare=50 maxspare=50 maxchildren=1000
#sudo chmod 777 /tmp/showxun_app.sock
#sudo nginx
